﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FolderSync.Entities
{
    /// <summary>
    /// 同步信息
    /// </summary>
    [Table("sync_info")]
    public class SyncInfo : Egg.EFCore.Dbsets.AutoIncrementKeyEntity
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Column("name")]
        public virtual string Name { get; set; } = "";

        /// <summary>
        /// 最后同步时间
        /// </summary>
        [Column("last_sync_time")]
        public virtual long? LastSyncTime { get; set; }

        /// <summary>
        /// 目录
        /// </summary>
        [Column("folder")]
        public virtual string Folder { get; set; } = "";

        /// <summary>
        /// 来源目录
        /// </summary>
        [Column("source_folder")]
        public virtual string SourceFolder { get; set; } = "";
    }
}
